package com.yeyks.vip.param;

import com.yeyks.common.annotation.PhoneCheck;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MemberCardOnlinePlaceAnOrderParam {

    @ApiModelProperty(value = "卡类型,1vip,2jip")
    @NotNull
    private Integer cardType;

    @ApiModelProperty(value = "姓名")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "电话")
    @NotBlank
    @PhoneCheck
    private String phone;

}
